package com.mars.basic.controller.testcontroller;

import com.mars.common.fegin.TestFeign;
import com.mars.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/test")
public class myTestController2 {

  @Autowired
  private TestFeign testFeign;

    @RequestMapping("/toHello")
    public R getHello(){
        System.out.println("-------------");
        String hello = testFeign.hello();
        System.out.println(123);
        return R.data(hello);
    }

}
